package com.sakura.mall.member.memberLevel.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.member.memberLevel.domain.entity.MemberLevelEntity;
import com.sakura.mall.member.memberLevel.domain.request.AddMemberLevelRequest;
import com.sakura.mall.member.memberLevel.domain.request.UpdateMemberLevelRequest;
import com.sakura.mall.member.memberLevel.domain.request.MemberLevelPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.member.memberLevel.domain.vo.MemberLevelVo;

/**
 * 会员等级 service
 *
 * @author sakura
 */
public interface MemberLevelService extends IService<MemberLevelEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<MemberLevelVo> queryPage(MemberLevelPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddMemberLevelRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateMemberLevelRequest request);
}
